@extends('back.index')
@section('title','读者用户信息管理-后台管理系统')
@section('mian')
    <div style="font-size:14px;padding:20px;" class="modal-content">
        <h2 class="sub-header power_mian">读者用户信息管理</h2>
        <div class="table-responsive">
            <table class="table table-striped">
                <thead>
                <tr>
                    <th>id</th>
                    <th>出版社</th>
                    <th>出版社封面</th>
                    <th>出版社网址</th>
                    <th>添加时间</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                @if(!empty($all))
                @foreach($all as $k)
                    <tr>
                        <td>{{$k->id}}</td>
                        <td>{{$k->name}}</td>
                        <td>
                            @if($k->pressicon)
                            <img src="{{asset('/image/presss/'.$k->pressicon)}}"  style="height:55px;width:160px">
                            @else
                                <img src="{{asset('/image/public.jpg')}}"  style="height:100px;width:100px">
                                @endif
                        </td>
                        <td>{{$k->http}}</td>
                        <td>
                            {{date('Y-m-d',$k->addtime)}}
                        </td>

                        <td> <a href="{{url('back/presss/uppresss/'.$k->id)}}">修改</a>
                             <a href="{{url('back/presss/delpresss/'.$k->id)}}">删除</a>
                        </td>
                    </tr>
                @endforeach
                    @endif
                </tbody>
            </table>
            {{$all->links()}}
        </div>
    </div>
@endsection